package com.hunau.zshop.dao;

import com.hunau.zshop.params.SysuserParam;
import com.hunau.zshop.pojo.Sysuser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysuserDao {

    public List<Sysuser> selectAll();

    public Sysuser selectById(int id);

    public void insert(Sysuser sysuser);

    public void update(Sysuser sysuser);

    public void updateStatus(@Param("id") int id,@Param("isValid") int isValid);


    List<Sysuser> selectByParams(SysuserParam sysuserParam);

    Sysuser selectByLoginNameAndPassword(@Param("loginName")String loginName,@Param("password") String password,@Param("isValid") int isValid);
}
